/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, DOMAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends DOMAttributes<SVGElement> {
  size?: number;
  color?: string | string[];
  style?: CSSProperties;
  className?: string;
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

export const IconMess: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M933.466054 362.359888c-13.560854 0-24.592095 11.022031-24.592095 24.559349l0 311.119877c0 50.732451-22.918989 105.327884-73.239048 105.327884L217.350237 803.366997c-24.434505 0-50.417273-12.101619-71.28658-33.19503-20.88568-21.113877-32.867572-47.409776-32.867572-72.154343L113.196085 315.825039c0-22.832008 13.410428-47.237861 36.789904-66.968228 20.965497-17.689894 47.40773-29.117155 67.363224-29.117155l618.284675 0c15.638165 0 28.309766 5.157463 31.529087 12.831236 2.967588 7.103792-2.245134 18.841114-13.615089 30.683836L579.561745 484.443387c-0.62831 0.512676-1.270946 1.093914-1.908466 1.734504-17.59575 17.568121-40.99467 27.239388-65.88864 27.239388-24.88169 0-48.275493-9.671267-65.869197-27.239388l-194.992019-194.73517c-4.646833-4.640694-10.824533-7.197936-17.386996-7.197936s-12.737092 2.558265-17.386996 7.197936c-9.586332 9.572006-9.586332 25.149796 0 34.728966l194.992019 194.711634c26.881231 26.841322 62.624293 41.62298 100.643188 41.62298 37.550221 0 72.945359-14.44499 99.69663-40.684608L885.670491 300.476469c0.785899-0.651846 1.456165-1.267876 2.004657-1.835811 26.971281-27.364231 36.034704-58.361199 24.860201-85.049025-11.123338-26.516934-40.590464-42.990117-76.900438-42.990117L217.347167 170.601516C137.098471 170.625052 64.011896 239.84046 64.011896 315.825039l0 382.213052c0 37.260625 17.325597 76.091002 47.53462 106.525152 30.218232 30.451546 68.784596 47.913243 105.803721 47.913243l618.284675 0c80.373539 0 122.425284-77.6935 122.425284-154.438395L958.060195 386.918213C958.060195 373.380896 947.023838 362.359888 933.466054 362.359888z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconMess.defaultProps = {
  size: 16,
};

export default IconMess;
